package cool.webstudy.admin.model.dto.competition;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author 莫振双
 * @date 2025/1/18 17:20
 * @description: 创建赛事接口请求参数模型
 */
@Data
@Schema(description = "创建赛事接口请求参数模型")
public class CreateCompetitionDTO {
    @Schema(description = "赛事名称", required = true)
    private String name;
    @Schema(description = "赛题业务主键", required = true)
    private String competitionQuestionUnCode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "赛事开始时间", required = true)
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "赛事结束时间", required = true)
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "赛事报名开始时间", required = true)
    private Date registrationStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "赛事报名截止时间", required = true)
    private Date registrationEndTime;
    @Schema(description = "回合数", required = true)
    private Integer roundCount;
    @Schema(description = "回合时长", required = true)
    private Integer roundDuration;
    @Schema(description = "初始总分", required = true)
    private Integer initialTotalScore;
    @Schema(description = "每攻击加的分", required = true)
    private Integer scorePerAttack;
}
